﻿// See https://aka.ms/new-console-template for more information
class test1
{
    int Number
    { get; set; }
    public test1(int n)
    {
        Number = n;
    }
    void isPrime(int n)
    {
        for (int i = 2; i <= n;)
            if (n % i == 0)
            {
                n = n / i;
                Console.Write(i + " ");
            }
            else
                i++;
    }
    public static void Main(string[] args)
    {
        
        int num;
        Console.WriteLine("输入一个数字：");
        num=Int32.Parse(Console.ReadLine()); 
        test1 t=new test1(num);
        Console.WriteLine("素数因子为：");
        t.isPrime(num);


    }
}